//
//  BK_My_DetailOrder_Model.h
//  bestkeep
//
//  Created by TOPTEAM on 2017/2/16.
//  Copyright © 2017年 utouu. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface BK_My_DetailOrder_Model : NSObject
@property(nonatomic, copy)NSString *is_global;  //是否是全球购订单，1：是，0：否",
@property(nonatomic, copy)NSString *order_id;  //订单ID
@property(nonatomic, copy)NSString *order_no;  //订单编号
@property(nonatomic, copy)NSString *order_status;  //订单状态
@property(nonatomic, copy)NSString *own_cancel_flag; //是否可取消订单（1可取消，0不可取消）
@property(nonatomic, copy)NSString *order_status_name; //订单状态名称
@property(nonatomic, copy)NSString *deliver_name;   //收货人
@property(nonatomic, copy)NSString *deliver_address;  //收货地址
@property(nonatomic, copy)NSString *phone;   //收货人手机号，要做打码显示如152****9888
@property(nonatomic, copy)NSString *ship_address;   //发货地
@property(nonatomic, copy)NSString *splitFlag;  //是否显示拆单按钮 1显示，0不显示"
@property(nonatomic, copy)NSString *canPayTimes; //剩余可支付时间-秒数（只在未支付订单显示）
@property(nonatomic, copy)NSString *lastPayTimesStr; //订单最迟支付时间yyyy-MM-dd HH:mm:ss
@property(nonatomic, copy)NSString *evaluationFlag; //// 0未评价，1部分评价，2全部已评价
@property(nonatomic, copy)NSString *goods_total_amount;  //商品总金额
@property(nonatomic, copy)NSString *customs_tax_amount;  //海关税（全球购的才显示）
@property(nonatomic, copy)NSString *express_amount;  //运费
@property(nonatomic, copy)NSString *promotion_discount_amount;  ///满减优惠金额
@property(nonatomic, copy)NSString *order_total_amount; ////订单金额
@property(nonatomic, copy)NSString *actualPaymentAmount; // 订单实际支付金额
@property(nonatomic, copy)NSString *order_create_time;//下单时间
@property(nonatomic, copy)NSString *order_pay_time;//支付时间"
@property(nonatomic, copy)NSString *order_goods_count ;//订单商品总件数"
@property(nonatomic, copy)NSString *shoppingTicketAmount ;
@property(nonatomic, copy)NSString *lastSendDateZh;// "xxxx年xx月xx日//预计发货日期",
@property(nonatomic, copy)NSString *thNormalType;//"thNormalType": "0/1//是否囤货普通预售，1：是，0：否",
@property(nonatomic, copy)NSString *lastPayTimes;//"lastPayTimes": 1487227556000,


@property(nonatomic,strong)NSArray *payAmountDetail;//明细;
@property(nonatomic,strong)NSArray *order_amount_lable_list;
@property(nonatomic,strong)NSArray *order_list;  //子商品

@end


@interface BK_My_DetailOrder_payAmountDetail_Model : NSObject
@property(nonatomic,copy) NSString *itemName; //抵扣明细名称(购物券、账户支付等)"
@property(nonatomic,copy) NSString *itemAmount; //抵扣明细金额
@property(nonatomic,copy) NSString *itemAmountStr; // 字符串格式的抵扣明细金额
@end

@interface BK_My_DetailOrder_OrderAmountLableList_Model : NSObject
@property(nonatomic,copy) NSString *index;
@property(nonatomic,copy) NSString *lableVaule;
@property(nonatomic,copy) NSString *lableName;

@end


@interface BK_My_DetailOrder_OrderList_Model : NSObject
@property(nonatomic,copy) NSString *availableDeliver; //"未到货，1：已到货
@property(nonatomic,copy) NSString *itemId; //子单id
@property(nonatomic,copy) NSString *goods_id; //商品id
@property(nonatomic,copy) NSString *goods_name; //商品名称
@property(nonatomic,copy) NSString *goods_img; //商品图片
@property(nonatomic,copy) NSString *sale_property; //商品销售属性
@property(nonatomic,copy) NSString *goods_price; //商品单价
@property(nonatomic,copy) NSString *goods_amount; //商品数量
@property(nonatomic,copy) NSString *returnFlag; //0:未退换货，1：已退换货"
@property(nonatomic,copy) NSString *evaluationFlag; // 0未评价，1已评价"
@property(nonatomic,copy) NSString *plan_deliver_date;//预计发货日期


@property(nonatomic, copy)NSString *thNormalType;//"thNormalType": "0/1//是否囤货普通预售，1：是，0：否",


@end



/*
 * <# say #>
 
{
    "code": "000",
    "data": {
        "deliver_address": "上海市 市辖区 黄浦区 悠唐科技有限公司",
        "customs_tax_amount": "9.52",
        "order_status_name": "交易关闭",
        "order_amount_lable_list": [
                                    {
                                        "index": 0,
                                        "lableVaule": "￥80.00",
                                        "lableName": "商品金额"
                                    },
                                    {
                                        "index": 1,
                                        "lableVaule": "￥9.52",
                                        "lableName": "税费"
                                    },
                                    {
                                        "index": 2,
                                        "lableVaule": "￥0.00",
                                        "lableName": "运费"
                                    }
                                    ],
        "order_no": "201702161305553151",
        "thNormalType": 0,
        "is_global": "1",
        "order_status": "05",
        "lastSendDateZh": "",
        "express_amount": "0.00",
        "order_id": "_Jrnf-FiRJChGKNT1To6aA",
        "deliver_name": "有糖",
        "evaluationFlag": "0",
        "own_cancel_flag": "0",
        "payAmountDetail": 
                         [ 
 
 
                         ],
        "ship_address": "台湾直邮仓",
        "lastPayTimesStr": "2017-02-16 14:45:56",
        "goods_total_amount": "80.00",
        "actualPaymentAmount": "89.52",
        "order_create_time": "2017-02-16 13:05:56",
        "order_goods_count": "1",
        "phone": "15888889999",
        "promotion_discount_amount": "0.00",
        "shoppingTicketAmount": "0.00",
        "splitFlag": "0",
        "lastPayTimes": 1487227556000,
        "canPayTimes": 0,
        "order_total_amount": "89.52",
        "order_list": [
                       {
                           "availableDeliver": "0",
                           "itemId": "zo4YDnmDSWCwO9vaS7IGLA",
                           "evaluationFlag": "0",
                           "plan_deliver_date": "--",
                           "sale_property": "",
                           "goods_img": "https://cdn.test.bestkeep.cn/goods/img/goods_1487155962583.jpg",
                           "goods_amount": "1",
                           "goods_price": "80.00",
                           "returnFlag": "0",
                           "goods_name": "跨境7",
                           "goods_id": "cHL9t8iPTVKy7xB2InEJSg"
                       }
                       ]
    },
    "success": true,
    "msg": "查询订单详情成功！"
}
*/

/*
 *
 接口名称：	order_detail_xxx
 接口用途：	查询订单详情
 method：	POST
 接口地址：	order/detail/xxx
 输入参数：	无
 返回数据：
 {
     "success": "true/false //成功/失败",
     "msg": "xxx //返回消息",
     "code": "xxxx//返回编码",
     "data":
        {
             "is_global": "xxxx//是否是全球购订单，1：是，0：否",
             "order_id": "xxx//订单ID",
             "order_no": "xxx//订单编号",
             "order_status": "xxx//订单状态",
             "own_calcle_flag": "xxx//是否可取消订单（1可取消，0不可取消）",
             " order_status_name": "xxx//订单状态名称",
             " deliver_name": "xxx///收货人",
             "deliver_address": "xxx//收货地址",
             " phone": "xxx //收货人手机号，要做打码显示如152****9888",
             " ship_address": "xx//发货地",
             "splitFlag": "xxx//是否显示拆单按钮 1显示，0不显示",
             "canPayTimes": "xx//剩余可支付时间-秒数（只在未支付订单显示）",
             " lastPayTimesStr": "xxx//订单最迟支付时间yyyy-MM-dd HH:mm:ss",
             "evaluationFlag": "xx// 0未评价，1部分评价，2全部已评价",
             "goods_total_amount": "xx.//商品总金额",
             "customs_tax_amount": "xxxx//海关税（全球购的才显示）",
             "express_amount": "xxx//运费",
             "promotion_discount_amount": "xxx//满减优惠金额",
             "order_total_amount": "xxx//订单金额",
             "actualPaymentAmount": "xxx//订单实际支付金额",
             "order_create_time": "xxxx//下单时间",
             "order_pay_time": "xxx//支付时间",
             "order_goods_count": "xxx//订单商品总件数",
             "lastSendDateZh": "xxxx年xx月xx日//预计发货日期",
             "thNormalType": "0/1//是否囤货普通预售，1：是，0：否",
             "order_list":
                         [
                             {
                             "availableDeliver:xx//0": "未到货，1：已到货",
                             "itemId": "xxx//子单id",
                             " goods_id": "xxx//商品ID",
                             " goods_name": "xxx//商品名称",
                             "goods_img": "xxx//商品图片",
                             "sale_property": "xxx//商品销售属性",
                             "goods_price": "xxx//商品单价",
                             " goods_amount": "xxx//商品数量",
                             "returnFlag": "xx//0:未退换货，1：已退换货",
                             "evaluationFlag": "xx// 0未评价，1已评价",
                             "plan_deliver_date": "xxxx//预计发货日期",
                             }
                         ],
             "payAmountDetail":
                         [
                             {
                             " itemName": "xxx //抵扣明细名称(购物券、账户支付等)",
                             "itemAmount": "xx //抵扣明细金额",
                             " itemAmountStr": "xxx//字符串格式的抵扣明细金额",
                             }
                         ]
            }
 }
 备注：
 */
